package org.example.testdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    @TableId(value = "userId",type = IdType.ASSIGN_UUID)
    private String userId;//用户id
    @TableField("userName")
    private String userName;//用户名
    @TableField("password")
    private String password;//用户密码
    @TableField("secretKey")
    private String secretKey;//用户密钥
    @TableField("name")
    private String name;//用户名称
    @TableField("permissionId")
    private Integer permissionId;//权限id
    @TableField("b_Code")
    private String bCode;//部门编号
    @TableField("creationTime")
    private LocalDateTime creationTime;//创建时间
    @TableField("changeTime")
    private LocalDateTime changeTime;//修改时间
}
